package com.qiang.test03;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        //转换流
        OutputStreamWriter oo = new OutputStreamWriter(new FileOutputStream("day12\\ee.txt"),"GBK");
        oo.write("中国");
        oo.close();
    }
}
